package com.xiaoyu.lanling.feature.view.weight.picker;

import in.srain.cube.request.JsonData;

public class PickerModel {

    public final String key;
    public final String value;

    public PickerModel(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public PickerModel(JsonData jsonData) {
        this.key = jsonData.optString("id");
        this.value = jsonData.optString("name");
    }
}
